package com.cqwu.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CmTrainning entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "cm_trainning", catalog = "common")
public class CmTrainning implements java.io.Serializable {

	// Fields

	private Integer id;
	private String traidName;
	private String traidDesc;
	private String teacher;
	private String orgDepartment;
	private String traidDept;
	private Integer traidTime;
	private Integer publisher;
	private Integer publishTime;
	private String remark;
	private String attachAddress;
	private boolean isShow;

	// Constructors

	/** default constructor */
	public CmTrainning() {
	}

	/** minimal constructor */
	public CmTrainning(String traidName, String teacher, String orgDepartment) {
		this.traidName = traidName;
		this.teacher = teacher;
		this.orgDepartment = orgDepartment;
	}

	/** full constructor */
	public CmTrainning(String traidName, String traidDesc, String teacher,
			String orgDepartment, String traidDept, Integer traidTime,
			Integer publisher, Integer publishTime, String remark,
			String attachAddress, boolean isShow) {
		this.traidName = traidName;
		this.traidDesc = traidDesc;
		this.teacher = teacher;
		this.orgDepartment = orgDepartment;
		this.traidDept = traidDept;
		this.traidTime = traidTime;
		this.publisher = publisher;
		this.publishTime = publishTime;
		this.remark = remark;
		this.attachAddress = attachAddress;
		this.isShow = isShow;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "traidName", nullable = false, length = 50)
	public String getTraidName() {
		return this.traidName;
	}

	public void setTraidName(String traidName) {
		this.traidName = traidName;
	}

	@Column(name = "traidDesc", length = 65535)
	public String getTraidDesc() {
		return this.traidDesc;
	}

	public void setTraidDesc(String traidDesc) {
		this.traidDesc = traidDesc;
	}

	@Column(name = "teacher", nullable = false, length = 20)
	public String getTeacher() {
		return this.teacher;
	}

	public void setTeacher(String teacher) {
		this.teacher = teacher;
	}

	@Column(name = "orgDepartment", nullable = false, length = 50)
	public String getOrgDepartment() {
		return this.orgDepartment;
	}

	public void setOrgDepartment(String orgDepartment) {
		this.orgDepartment = orgDepartment;
	}

	@Column(name = "traidDept", length = 50)
	public String getTraidDept() {
		return this.traidDept;
	}

	public void setTraidDept(String traidDept) {
		this.traidDept = traidDept;
	}

	@Column(name = "TraidTime")
	public Integer getTraidTime() {
		return this.traidTime;
	}

	public void setTraidTime(Integer traidTime) {
		this.traidTime = traidTime;
	}

	@Column(name = "publisher")
	public Integer getPublisher() {
		return this.publisher;
	}

	public void setPublisher(Integer publisher) {
		this.publisher = publisher;
	}

	@Column(name = "publishTime")
	public Integer getPublishTime() {
		return this.publishTime;
	}

	public void setPublishTime(Integer publishTime) {
		this.publishTime = publishTime;
	}

	@Column(name = "remark", length = 100)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "attachAddress")
	public String getAttachAddress() {
		return this.attachAddress;
	}

	public void setAttachAddress(String attachAddress) {
		this.attachAddress = attachAddress;
	}

	@Column(name = "isShow")
	public boolean getIsShow() {
		return this.isShow;
	}

	public void setIsShow(boolean isShow) {
		this.isShow = isShow;
	}

}